package com.cvit.dao;

import com.cvit.model.Achievement;
import com.cvit.model.AchievementExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AchievementMapper {
    long countByExample(AchievementExample example);

    int deleteByExample(AchievementExample example);

    int deleteByPrimaryKey(String id);

    int insert(Achievement record);

    int insertSelective(Achievement record);

    List<Achievement> selectByExample(AchievementExample example);
    
    /**
     * 查询所有（包含学生表信息）
     * */
    List<Achievement> selectAll(AchievementExample example);
    
    /**
     * 按学生序号删除
     * */
    void deleteByStudentId(String studentId);

    Achievement selectByPrimaryKey(String id);
    
    /**
     * 根据学生序号查询（Excel导入）
     * */
    Achievement selectByStudentId(String studentId);

    int updateByExampleSelective(@Param("record") Achievement record, @Param("example") AchievementExample example);

    int updateByExample(@Param("record") Achievement record, @Param("example") AchievementExample example);

    int updateByPrimaryKeySelective(Achievement record);

    int updateByPrimaryKey(Achievement record);

    /**
     * 根据Id、学生序号、身份证号、考生号查询成绩表单
     * */
	Achievement selectAchievementBy(Achievement achievement);

	/**
	 * 根据学生号查询
	 * */
	Achievement selectEamineeId(String EamineeId);

	
}